#!/bin/sh
# /**
# * Copyright (c) 2018, God's harbor
# * All rights reserved.
# * @file    clean_objs.sh
# * @brief   清理部分目录的文件，专用用具
# * @author  Jason Zhou,yzfcer@163.com
# * @version 1.0
# * @date    2021-09-15
# */

function usage()
{
    echo "clean_objs.sh usage:"
    echo "clean_objs.sh [dir]"
    echo "dir : debug directory"
}

function main()
{
    if [ "$1" == "-h" ]
    then
        usage
        exit
    fi

    CURPATH=$(pwd)
    if [ $# -gt 2 ]
    then
        CURPATH=$2
    fi
    echo "CURPATH="$CURPATH

    rm -rf ./obj/*
    rm -rf ./lib/*
    rm -rf ./libs/*
}
main $@
